// 引入 request 文件
import {
	request
} from '../index.js'

// 获取手机号
export const getPhoneNumber = (params) => {
	console.log('params', params);
	return request({
		url: '/wx/getPhone',
		method: 'post',
		data: params,
	})
}
// 获取验证码
export const getVerifyCode = (params) => {
	return request({
		url: '/sms/send',
		method: 'POST',
		data: params,
	})
}
// 登录
export const login = (params) => {
	return request({
		url: '/sms/login',
		method: 'post',
		data: params,
	})
}

// 微信登录
export const wxLogin = (data) => {
	return request({
		url: '/wx/getUserInfo',
		method: 'post',
		data,
	})
}